package com.levy.contronller.javase.designModel.factory;

/**
 * Created by levy on 2018/7/21.
 */
public class AppleFactory implements FruitFactory{

    @Override
    public Fruit getFruit() throws IllegalAccessException, InstantiationException {
        return Apple.class.newInstance();
    }
}
